﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Workflow.Runtime;

namespace BneyBaruch.Ingest.MorningLesson.WorkflowServices
{
    public class MorningLessonInjestWorkflowLocalService : IMorningLessonInjestWorkflowLocalService
    {
        #region Fields

        private WorkflowRuntime workflowRuntime;

        #endregion

        #region Constructors

        public MorningLessonInjestWorkflowLocalService(WorkflowRuntime workflowRuntime)
        {
            this.workflowRuntime = workflowRuntime;
        }

        #endregion

        #region IMorningLessonInjestWorkflowLocalService Members

        public event EventHandler<MatrixAdjustmentApprovedEventArgs> MatrixAdjustmentApproved;

        public void NotifyMatrixAdjustmentApproved(Guid workflowInstanceId)
        {
            MatrixAdjustmentApprovedEventArgs e = new MatrixAdjustmentApprovedEventArgs(workflowInstanceId);

            if (MatrixAdjustmentApproved != null)
            {
                MatrixAdjustmentApproved(null, e);
            }
        }

        #endregion
    }
}
